import request from '@/utils/request'

// Excel 导入
export function importExcel(formData) {
  return request({
    url: '/curriculum/import',
    method: 'post',
    data: formData,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}

// 生成课程体系
export function generateCurriculum(data) {
  return request({
    url: '/curriculum/generate',
    method: 'post',
    data
  })
}

// 微调课程体系
export function adjustCurriculum(data) {
  return request({
    url: '/curriculum/adjust',
    method: 'post',
    data
  })
}

// 查看课程体系
export function viewCurriculum(majorId, grade) {
  return request({
    url: '/curriculum/view',
    method: 'get',
    params: { majorId, grade }
  })
}
